﻿@model IEnumerable<RealEstateApp.Library.Customer>
@{
    ViewBag.Title = "Danh sách khách hàng";
}

<div class="page-content">
    <div class="page-header position-relative">
        <h1>Danh sách khách hàng
        </h1>
    </div>
    <!--/.page-header-->

    <div class="row-fluid">
        <div class="span12">
            <!--PAGE CONTENT BEGINS-->

            <div class="row-fluid">
                <div class="span12">

                    @*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th>Tên khách hàng
                                </th>
                                <th>Điện thoại bàn
                                </th>
                                <th>Di động
                                </th>
                                <th>Email
                                </th>
                                <th>Địa chỉ liên hệ
                                </th>
                                <th></th>
                            </tr>
                        </thead>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(modelItem => item.CustName)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Phone)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Mobile)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Email)
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.Address)
                                </td>
                                <td>
                                    <div class="hidden-phone visible-desktop action-buttons">
										<a class="blue" href="@Url.Action( "Edit", new { id = item.CustID})">
											<i class="icon-zoom-in bigger-130"></i>
										</a>

										<a class="red" href="@Url.Action("Delete", new { id = item.CustID})">
											<i class="icon-trash bigger-130"></i>
										</a>
									</div>
                                    @*@Html.ActionLink("Edit", "Edit", new { id = item.CustID }) |
                                    @Html.ActionLink("Details", "Details", new {  id=item.CustID  }) |
                                    @Html.ActionLink("Delete", "Delete", new {  id=item.CustID  })*@
                                </td>
                            </tr>
                        }

                    </table>

                </div>
            </div>
        </div>
    </div>
</div>
